﻿using Acme.SmartWMS.Location.DefinitionService.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;

namespace Acme.SmartWMS.Location.DefinitionService
{
    public interface IDefinitionAppService
    {
        /// <summary>
        /// 获取仓库定义分页 显示 查询
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="warehouseCode"></param>
        /// <param name="warehouseName"></param>
        /// <returns></returns>
        Task<PagedResult> GetDefinitionList(int pageIndex, int pageSize, string? warehouseCode, string? warehouseName);
        /// <summary>
        /// 添加仓库定义
        /// </summary>
        /// <param name="definitionDTO"></param>
        /// <returns></returns>
        Task<int> InsertDefinition(DefinitionDTO definitionDTO);
        /// <summary>
        /// 删除仓库定义
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDefinition(string ids);
        /// <summary>
        /// 获取仓库定义主键Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Definition> GetDefinitionById(int id);
        /// <summary>
        /// 更新仓库定义
        /// </summary>
        /// <param name="definitionDTO"></param>
        /// <returns></returns>
        Task<int> UpdateDefinition(DefinitionDTO definitionDTO);
    }
}
